package main

import "fmt"

type person8 struct {
	id   int
	name string
	age  int
	sex  string
}
type student8 struct {
	person8

	class int
	score int
	addr  string
}

func (p *person8) SayHello() {
	fmt.Printf("大家好，我叫%s,我今年%d岁，我是%s生", p.name, p.age, p.sex)
}

func (s *student8) SayHello() {
	fmt.Printf("大家好，我叫%s,我今年%d岁，我是%s生,我的班级是%d,我的成绩是%d\n",
		s.name, s.age, s.sex, s.class, s.score)
}

func main() {
	stu := student8{person8{1001,"宇智波佐助",16,"男"}, 112,83,"木叶村"}
	stu.SayHello()
}
